<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">

	<h:head>
		<link href="/javax.faces.resource/theme.css.xhtml?ln=primefaces-aristo"
			rel="stylesheet" type="text/css" />
	
		<link rel="shortcut icon" href="/sundae/resources/favicon.png"
			type="image/x-icon" />
	
	</h:head>
	<body>
		<h:form id="loginForm"
			style="width: 350px; vertical-align: middle; margin: 0 auto">
			<p:growl id="growl" globalOnly="true"></p:growl>
			<p:panel header="Resgistro" style="width: 350;" align="center">
				<h:panelGrid id="loginPanel" columns="2">
					<h:outputText value="Usuario"></h:outputText>
					<p:inputText value="#{usuarioBean.name}"></p:inputText>
					<h:outputText value="Password"></h:outputText>
					<p:password value="#{usuarioBean.pass}"></p:password>
					<p:commandButton value="Registrarse"
						action="#{usuarioBean.crearUsuario}" ajax="false" />
				</h:panelGrid>
			</p:panel>
		</h:form>
	</body>
</html>